﻿<!DOCTYPE html>
<html lang="en" xmlns:th="http://www.thymeleaf.org">
<head>

     <title>登录</title>
    <link rel="stylesheet" th:href="@{/css/pintuer.css}">
    <link rel="stylesheet" th:href="@{/css/admin.css}">
    <script th:src="@{/js/jquery-3.3.1.min.js}" type="text/javascript"></script>

    <style type="text/css">
       *{
        font-size: 12px;
       }
    </style>

  </head>
  
   <body>

  <div class="panel admin-panel">
    <div class="panel-head"><strong class="icon-reorder"> 操作信息管理</strong></div>
    <div class="padding border-bottom">
      <!--<ul class="search">
        <li>
          <button type="submit" class="button border-red"><span class="icon-trash-o"></span> 批量删除</button>
        </li>
      </ul>-->
    </div>
    <table class="table table-hover text-center" id="firm-table">
      <tr>
        <th>编号</th>
        <th>电影类别</th>
        <th>电影名称</th>
        <th>主演</th>
        <th>上映时间</th>
        <th>简介</th>
        <th align="center">操作</th>

    </table>
  </div>
</body>
<script>
    $(function(){
        $.get("../gson/fimlGson",{
            fflag : 1
        },function(data){
            var gsonText = '';
            $(data).each(function(i,n){
                gsonText += '<tr>' +
                    '<td>'+n.fid+'</td>' +
                    '<td>'+n.modelFsort.sname+'</td>' +
                    '<td>'+n.fname+'</td>' +
                    '<td>'+n.fauto+'</td>' +
                    '<td>'+n.ontime+'</td>' +
                    '<td width="300px">'+n.fremark+'</td>' +
                    '<td><div class="button-group">\n' +
                    '\t\t\t\t\t\t<a class="button border-red" href="fimlControllerUpdate?fid='+n.fid+'">\n' +
                    '\t\t\t        <span class="icon-trash-o">\n' +
                    '\t\t\t\t\t</span> 修改</a> \n' +
                    '\t\t\t\t</div>\n' +
                    '\t\t\t\t\n' +
                    '\t\t\t\t<div class="button-group">\n' +
                    '\t\t\t\t\t\t<a class="button border-red" href="deleteById?fid='+n.fid+'&fflag=0">\n' +
                    '\t\t\t        <span class="icon-trash-o">\n' +
                    '\t\t\t\t\t</span> 下架</a> \n' +
                    '\t\t\t\t</div></td>' +
                    '</tr>';
            });
            gsonText += '<tr>\n' +
                '       \t\t<td colspan="7" align="center">\n' +
                '\t\t\t\t<a href="fimlControllerAdd"><button type="button"  class="button border-green" id="checkall"><span class="icon-check"></span> 增加</button></a>\n' +
                '\t\t\t\t<a href="fimlControllerShang"><button type="button"  class="button border-green" id="checkall"><span class="icon-check"></span>查看已下架电影</button></a>\n' +
                '\t\t\t</td>\n' +
                '\t\t\t\n' +
                '       </tr>';
            $('#firm-table tbody').append(gsonText);
        });
    });
</script>
</html>

